package com.fxsen.commons.sysmanager.core.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

/**
 * 角色菜单表(menuRole)表实体类
 *
 * @author <a href="mailto:fuqiang@wisesoft.net.cn">付强</a>
 * @since 2022-01-19 17:10:29
 */
@ApiModel("角色菜单")
@TableName("sys_menu_role")
@TableComment(value = "角色与菜单关联表")
@Entity
public class MenuRole extends BaseEntity {
    /**
     * 角色id
     */
    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    @Column(name = "role_id", type = MySqlTypeConstant.VARCHAR, comment = "角色id",length = 32)
    private String roleId;
    /**
     * 菜单id
     */
    @ApiModelProperty("菜单id")
    @TableField(value = "menu_id")
    @Column(name = "menu_id", type = MySqlTypeConstant.VARCHAR, comment = "菜单id",length = 32)
    private String menuId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }
}

